<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>TCR</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />

</head>
<body>

<div id="container">
<div id="header">
<div class="intro">
<h1><a href="/">TCR</a></h1>
<div class="description">Tudou Coverage Report System</div>
</div>
<div class="nav">
<ul class="clearfix">
	<li><s:a action="">首页</s:a></li>
	<li><s:a action="myproject">我的项目</s:a></li>
	<li><s:a action="uploadform">上传报告</s:a></li>
</ul>
<div class="login"><span class="name">${user.u_name}</span> |<s:a
	action="logout">注销</s:a></div>
</div>
</div>

<div id="content">
<h3 class="title">上传报告</h3>
<s:form cssClass="form-user" action="uploadfile" method="POST"
	enctype="multipart/form-data">
	<s:fielderror></s:fielderror>
	<table>
		<tbody>
			<tr>
				<td>
				<p><s:select list="projs" label="项目列表" listValue="p_name"
					listKey="pid" key="pid" cssClass="select" /></p>
				</td>
				<td class="hint">项目的名称</td>
			</tr>
			<tr>
				<td>
				<p><s:textfield name="c_dir" label="Index目录" cssClass="f-text"
					size="100"></s:textfield></p>
				</td>
				<td class="hint">Index.html的目录</td>
			</tr>
			<tr>
				<td>
				<p><s:textfield name="c_version" label="版本信息" cssClass="f-text"
					size="30"></s:textfield></p>
				</td>
				<td class="hint">版本信息</td>
			</tr>
			<tr>
				<td>
				<p><s:textfield name="f_name" label="文件名称" cssClass="f-text"
					size="30"></s:textfield></p>
				</td>
				<td class="hint">文件名称(英文)</td>
			</tr>
			<tr>
				<td><s:file name="upload" label="选择上传文件" /></td>
				<td class="hint">上传必须是ZIP格式的文件哦</td>
			</tr>
			<tr>
				<td><s:hidden name="uid" value="%{user.uid}"></s:hidden></td>
				<td><s:submit value="上传" align="right" cssClass="f-submit" /></td>
			</tr>
		</tbody>
	</table>

</s:form></div>
</div>
</body>

</html>